import std.stdio;
import core.runtime;
import core.sys.posix.dlfcn;
import core.stdc.stdio;
import core.stdc.stdlib;
import dpluginload;
import dll;

void main()
{
	writeln("Edit source/app.d to start your project.");
	DPluginLoad load = new DPluginLoad("../dll/libdll.so");
	auto pfun = load.loadFunction("DPlugLoadCreate_");
	if (pfun) {
            auto fun = cast(IClass function())pfun;
            auto cass = fun();
            cass.show();
            cass.showInt(78);
	} else {
            writeln ("load erro: ", load.erroString());
	}
	return;
}
